home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 18239 < prev    next >
Encoding:
Text File  |  1996-08-05  |  1.3 KB  |  35 lines

  1. Newsgroups: comp.lang.c++,comp.os.ms-windows.programmer.misc,comp.os.ms-windows.programmer.tools.misc
  2. Path: dmocc2.on.bell.ca!bc2cep!news
  3. From: Eric Marc Loebenberg <loebenbe@qc.bell.ca>
  4. Subject: Toolbar button problem
  5. X-Nntp-Posting-Host: cmocft.qc.bell.ca
  6. Content-Type: text/plain; charset=iso-8859-1
  7. Message-ID: <31779169.36D3@qc.bell.ca>
  8. Sender: news@on.bell.ca (news admin)
  9. Content-Transfer-Encoding: 8bit
  10. Organization: Bell Sygma
  11. Mime-Version: 1.0
  12. Date: Fri, 19 Apr 1996 13:13:13 GMT
  13. X-Mailer: Mozilla 2.0 (Win95; I)
  14.  
  15. I have a toolbar with buttons that have the same ids as menu
  16. items.
  17.  
  18. Just before I execute a function, I want to enable a specific button.
  19. The button and menu item have a ON_UPDATE_COMMAND_UI callback.
  20.  
  21. If I could get this routine called, it might enable the button.
  22. I tried CWnd::UpdateDialogControls but no go.  I also tried to get the 
  23. window of the button but this does not work since my command ID is
  24. greater than 8000x and getting a window from an id requires an int.
  25.  
  26. Can anyone give me a hand?  Thanks.
  27.  
  28. ***************************************************************
  29.   Eric Marc Loebenberg                  loebenbe@qc.bell.ca
  30.   Bell Sygma Inc.                   or: loebenbe@post.sygma.net
  31.   700 de la GauchetiΦre West       Tel: 514-870-0465
  32.   Room 14W1                        Fax: 514-870-7583
  33.   Montreal, Quebec, Canada
  34.   H3B 4L1
  35.